package ${package}.model;

import java.math.BigDecimal;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * Created by util on ${now?date}.
 */
@Setter
@Getter
@ApiModel(value = "${model?uncap_first}对象")
public class ${model} implements Serializable {

    <#list fields as f>
    <#if f.type == 'Date'>
    @ApiModelProperty(value = "${f.comment}", required = false, example = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    <#else>
    @ApiModelProperty(value = "${f.comment}", required = false)
    </#if>
    private ${f.type} ${f.field};
        
    </#list>
}
